import Mongoose from 'mongoose'

const order = new Mongoose.Schema({
  name: String,
  money: Number,
  users: {
    type: Mongoose.Schema.Types.ObjectId,
    ref: 'users'
  }
})

export default Mongoose.model('orders', order)